-- GENERATED SPELL FOR [Dark Rune Commoner] --


function spell0_32904(pUnit, Event) --@Low Blow,n/a--
pUnit:FullCastSpellOnTarget(62326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32904', 20261, 1)
end

function spell1_32904(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(38313,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32904', 5269, 1)
end

function Sorts_32904(pUnit, Event)
local choix_sorts_32904 = math.random(0, 1)
if choix_sorts_32904 == 0 then
pUnit:RegisterEvent('spell0_32904', 1, 1)
end
if choix_sorts_32904 == 1 then
pUnit:RegisterEvent('spell1_32904', 1, 1)
end
end

function mob32904_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32904', math.random(1500, 3000), 1)
end

function mob32904_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32904_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32904_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32904, 1, 'mob32904_Action')
RegisterUnitEvent(32904, 2, 'mob32904_Leave')
RegisterUnitEvent(32904, 3, 'mob32904_Kill')
RegisterUnitEvent(32904, 4, 'mob32904_Die')
